extends Area2D

@export var speed_子弹速度 : float = 200

# Called when the node enters the scene tree for the first time.
func _ready() -> void:
	pass # Replace with function body.


# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(_delta: float) -> void:
	pass


func _physics_process(_delta: float) -> void:
	position += Vector2(speed_子弹速度, 0) * _delta
	# 判断子弹是否飞出场景, 如果飞出场景就将其销毁
	if position.x > 260:
		queue_free()
	pass
